package com.villaday.idf.adapter3;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.villaday.idf.R;
import com.villaday.idf.base.AbsRecyclerViewAdapter;
import com.villaday.idf.model.FaPiaoTitleEntity;
import com.villaday.idf.model2.ShippingAddressesEntity;
import com.villaday.idf.util.PhoneUtil;

public class FaPiaoTitleHistoryAdapter extends AbsRecyclerViewAdapter<FaPiaoTitleEntity> {

    View.OnClickListener onClickListener;

    public FaPiaoTitleHistoryAdapter(Context context, View.OnClickListener onClickListener) {
        super(context, R.layout.item_fapiao_title_history);
        this.onClickListener = onClickListener;
    }

    @Override
    public void onBindHolder(AbsRecyclerViewAdapter.RecyclerViewHolder holder, FaPiaoTitleEntity d, int position) {
        holder.bindTextView(R.id.tv_content, d.getContent())
        .setClickListenerAndTag(R.id.tv_delete,onClickListener,position);
    }
}
